package com.apexsoft.monitor.front.console.file.service;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.apexsoft.monitor.common.filelist.GetFileList;
import org.springframework.stereotype.Service;

//import net.sf.json.JSONArray;
//import net.sf.json.JSONObject;

@Service("fileListService")
public class fileListService {
    public JSONArray treeData(String currentType, String currentPath, String currentUrl,String showFile) throws Exception {
      JSONArray list=new JSONArray();
       list= GetFileList.treeData(currentType,currentPath,currentUrl,showFile);//调用GetFileList获取文件目录树Json数据
       return list;
    }
    public JSONObject showText(String currentUrl,String currentPath)throws Exception{



        JSONObject showTextObject=GetFileList.CommonGetData(currentUrl,currentPath,"ShowTextFile");

        return showTextObject;
    }
}



